﻿#if WINDOWS_UWP || NETFX_CORE
using System;
using System.Threading.Tasks;

using Windows.ApplicationModel.Store;
using Windows.System;

namespace Outcoder.LauncherModel.Launchers
{
	/* TODO: [DV] Comment. */
	public class MarketplaceReviewLauncher : LauncherBase, IMarketplaceReviewLauncher
	{
		public override async Task<bool> ShowAsync()
		{
			var storeUri = new Uri(string.Format("ms-windows-store:reviewapp?appid={0}", CurrentApp.AppId));
			var result = await Launcher.LaunchUriAsync(storeUri);
			return result;
		}
	}
}
#endif